<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AltreShopAddCameraSupplyer extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('shops', function (Blueprint $table) {
            $table->unsignedInteger('cameraSupplier')->default(0)
                  ->comment('摄像头提供方 0没有摄像头 1 阿里云 2 悠络客 3 夸父自研 ')
                  ->after('ylkStoreId');
            $table->string('cameraSupplierId', 50)
                  ->default('')
                  ->comment('提供方 Id ')
                  ->after('ylkStoreId');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('shops', function (Blueprint $table) {
            $table->dropColumn('cameraSupplier');
            $table->dropColumn('cameraSupplierId');
        });
    }
}
